(component
  (type (;0;)
    (component
      (type (;0;)
        (instance
          (type (;0;) (enum "a"))
          (export (;1;) "the-enum" (type (eq 0)))
        )
      )
      (export (;0;) "foo:foo/shared-items" (instance (type 0)))
    )
  )
  (export (;1;) "shared-items" (type 0))
  (type (;2;)
    (component
      (type (;0;)
        (component
          (type (;0;)
            (instance
              (type (;0;) (enum "a"))
              (export (;1;) "the-enum" (type (eq 0)))
            )
          )
          (import "foo:foo/shared-items" (instance (;0;) (type 0)))
          (alias export 0 "the-enum" (type (;1;)))
          (type (;2;)
            (instance
              (alias outer 1 1 (type (;0;)))
              (export (;1;) "the-enum" (type (eq 0)))
            )
          )
          (import "foo" (instance (;1;) (type 2)))
          (type (;3;)
            (instance
              (alias outer 1 1 (type (;0;)))
              (export (;1;) "the-enum" (type (eq 0)))
            )
          )
          (import "bar" (instance (;2;) (type 3)))
        )
      )
      (export (;0;) "foo:foo/w1" (component (type 0)))
    )
  )
  (export (;3;) "w1" (type 2))
  (type (;4;)
    (component
      (type (;0;)
        (component
          (type (;0;)
            (instance
              (type (;0;) (enum "a"))
              (export (;1;) "the-enum" (type (eq 0)))
            )
          )
          (import "foo:foo/shared-items" (instance (;0;) (type 0)))
          (alias export 0 "the-enum" (type (;1;)))
          (type (;2;)
            (instance
              (alias outer 1 1 (type (;0;)))
              (export (;1;) "the-enum" (type (eq 0)))
            )
          )
          (import "foo" (instance (;1;) (type 2)))
          (type (;3;)
            (instance
              (alias outer 1 1 (type (;0;)))
              (export (;1;) "the-enum" (type (eq 0)))
            )
          )
          (export (;2;) "bar" (instance (type 3)))
        )
      )
      (export (;0;) "foo:foo/w2" (component (type 0)))
    )
  )
  (export (;5;) "w2" (type 4))
  (type (;6;)
    (component
      (type (;0;)
        (component
          (type (;0;)
            (instance
              (type (;0;) (enum "a"))
              (export (;1;) "the-enum" (type (eq 0)))
            )
          )
          (import "foo:foo/shared-items" (instance (;0;) (type 0)))
          (alias export 0 "the-enum" (type (;1;)))
          (type (;2;)
            (instance
              (alias outer 1 1 (type (;0;)))
              (export (;1;) "the-enum" (type (eq 0)))
            )
          )
          (export (;1;) "bar" (instance (type 2)))
        )
      )
      (export (;0;) "foo:foo/w3" (component (type 0)))
    )
  )
  (export (;7;) "w3" (type 6))
  (@custom "package-docs" "\01{}")
  (@producers
    (processed-by "wit-component" "$CARGO_PKG_VERSION")
  )
)
